home *** CD-ROM | disk | FTP | other *** search
/ Champak 33 / Volume 33 - JOGO DISK .iso / Games / santas_gift_jump.swf / scripts / DefineSprite_85_cadou / frame_26 / DoAction.as
Text File  |  2007-01-16  |  11KB  |  398 lines

  1. var ┬º\x01┬º = 450;
  2. loop0:
  3. while(true)
  4. {
  5.    if(eval("\x01") == 450)
  6.    {
  7.       set("\x01",eval("\x01") - 96);
  8.       ┬º┬ºpush(true);
  9.       continue;
  10.    }
  11.    if(eval("\x01") == 14)
  12.    {
  13.       set("\x01",eval("\x01") + 382);
  14.       ┬º┬ºpush(true);
  15.       continue;
  16.    }
  17.    if(eval("\x01") == 511)
  18.    {
  19.       set("\x01",eval("\x01") - 236);
  20.       if(root.pauza == false)
  21.       {
  22.          i--;
  23.          if(i == 0)
  24.          {
  25.             play();
  26.          }
  27.          else
  28.          {
  29.             gotoAndStop("lup");
  30.             play();
  31.          }
  32.       }
  33.       else
  34.       {
  35.          gotoAndPlay(24);
  36.       }
  37.       break;
  38.    }
  39.    if(eval("\x01") == 68)
  40.    {
  41.       set("\x01",eval("\x01") + 388);
  42.       if(┬º┬ºpop())
  43.       {
  44.          set("\x01",eval("\x01") + 183);
  45.       }
  46.       continue;
  47.    }
  48.    if(eval("\x01") == 130)
  49.    {
  50.       set("\x01",eval("\x01") + 381);
  51.       break;
  52.    }
  53.    if(eval("\x01") == 131)
  54.    {
  55.       set("\x01",eval("\x01") - 29);
  56.       if(┬º┬ºpop())
  57.       {
  58.          set("\x01",eval("\x01") + 208);
  59.       }
  60.       continue;
  61.    }
  62.    if(eval("\x01") == 463)
  63.    {
  64.       set("\x01",eval("\x01") - 449);
  65.       stopDrag();
  66.       startDrag(┬º┬ºpop(),┬º┬ºpop(),┬º┬ºpop(),┬º┬ºpop(),┬º┬ºpop(),┬º┬ºpop());
  67.       break;
  68.    }
  69.    if(eval("\x01") != 102)
  70.    {
  71.       if(eval("\x01") == 354)
  72.       {
  73.          set("\x01",eval("\x01") + 109);
  74.          if(┬º┬ºpop())
  75.          {
  76.             set("\x01",eval("\x01") - 449);
  77.          }
  78.       }
  79.       else if(eval("\x01") == 310)
  80.       {
  81.          set("\x01",eval("\x01") - 242);
  82.          ┬º┬ºpush(true);
  83.       }
  84.       else if(eval("\x01") == 396)
  85.       {
  86.          set("\x01",eval("\x01") + 307);
  87.          if(┬º┬ºpop())
  88.          {
  89.             set("\x01",eval("\x01") + 98);
  90.          }
  91.       }
  92.       else
  93.       {
  94.          if(eval("\x01") == 456)
  95.          {
  96.             set("\x01",eval("\x01") + 183);
  97.             break;
  98.          }
  99.          if(eval("\x01") == 578)
  100.          {
  101.             set("\x01",eval("\x01") - 447);
  102.             ┬º┬ºpush(true);
  103.          }
  104.          else
  105.          {
  106.             if(eval("\x01") == 429)
  107.             {
  108.                set("\x01",eval("\x01") + 472);
  109.                ┬º┬ºpush(┬º┬ºpop() eq ┬º┬ºpop());
  110.                break;
  111.             }
  112.             if(eval("\x01") == 716)
  113.             {
  114.                set("\x01",eval("\x01") - 450);
  115.                if(┬º┬ºpop())
  116.                {
  117.                   set("\x01",eval("\x01") + 312);
  118.                }
  119.             }
  120.             else
  121.             {
  122.                if(eval("\x01") == 266)
  123.                {
  124.                   set("\x01",eval("\x01") + 312);
  125.                   ┬º┬ºpush(┬º┬ºpop() - 1);
  126.                   break;
  127.                }
  128.                if(eval("\x01") == 316)
  129.                {
  130.                   set("\x01",eval("\x01") + 238);
  131.                   if(┬º┬ºpop())
  132.                   {
  133.                      set("\x01",eval("\x01") - 174);
  134.                   }
  135.                }
  136.                else if(eval("\x01") == 901)
  137.                {
  138.                   set("\x01",eval("\x01") - 185);
  139.                   ┬º┬ºpush(true);
  140.                }
  141.                else if(eval("\x01") == 639)
  142.                {
  143.                   set("\x01",eval("\x01") - 323);
  144.                   ┬º┬ºpush(true);
  145.                }
  146.                else if(eval("\x01") == 795)
  147.                {
  148.                   set("\x01",eval("\x01") - 665);
  149.                   if(┬º┬ºpop())
  150.                   {
  151.                      set("\x01",eval("\x01") + 381);
  152.                   }
  153.                }
  154.                else
  155.                {
  156.                   if(eval("\x01") == 554)
  157.                   {
  158.                      set("\x01",eval("\x01") - 174);
  159.                      break;
  160.                   }
  161.                   if(eval("\x01") == 703)
  162.                   {
  163.                      set("\x01",eval("\x01") + 98);
  164.                      return ┬º┬ºpop();
  165.                   }
  166.                   if(eval("\x01") == 801)
  167.                   {
  168.                      set("\x01",eval("\x01") - 607);
  169.                      ┬º┬ºpush(true);
  170.                   }
  171.                   else
  172.                   {
  173.                      if(eval("\x01") == 275)
  174.                      {
  175.                         set("\x01",eval("\x01") - 275);
  176.                         break;
  177.                      }
  178.                      if(eval("\x01") == 194)
  179.                      {
  180.                         set("\x01",eval("\x01") + 235);
  181.                         if(┬º┬ºpop())
  182.                         {
  183.                            set("\x01",eval("\x01") + 472);
  184.                         }
  185.                      }
  186.                      else
  187.                      {
  188.                         if(eval("\x01") != 380)
  189.                         {
  190.                            break;
  191.                         }
  192.                         set("\x01",eval("\x01") + 415);
  193.                         ┬º┬ºpush(true);
  194.                      }
  195.                   }
  196.                }
  197.             }
  198.          }
  199.       }
  200.       continue;
  201.    }
  202.    set("\x01",eval("\x01") + 208);
  203.    while(true)
  204.    {
  205.       if(eval("\x01") == 647)
  206.       {
  207.          set("\x01",eval("\x01") - 319);
  208.          break loop0;
  209.       }
  210.       if(eval("\x01") == 569)
  211.       {
  212.          set("\x01",eval("\x01") - 116);
  213.          break loop0;
  214.       }
  215.       if(eval("\x01") == 16)
  216.       {
  217.          set("\x01",eval("\x01") + 682);
  218.          break loop0;
  219.       }
  220.       if(eval("\x01") == 250)
  221.       {
  222.          set("\x01",eval("\x01") + 102);
  223.          if(┬º┬ºpop())
  224.          {
  225.             set("\x01",eval("\x01") + 472);
  226.          }
  227.       }
  228.       else
  229.       {
  230.          if(eval("\x01") == 352)
  231.          {
  232.             set("\x01",eval("\x01") + 472);
  233.             toggleHighQuality();
  234.             break loop0;
  235.          }
  236.          if(eval("\x01") != 40)
  237.          {
  238.             break loop0;
  239.          }
  240.          set("\x01",eval("\x01") - 24);
  241.          if(┬º┬ºpop())
  242.          {
  243.             set("\x01",eval("\x01") + 682);
  244.          }
  245.       }
  246.       while(true)
  247.       {
  248.          if(eval("\x01") == 918)
  249.          {
  250.             set("\x01",eval("\x01") + 5);
  251.             ┬º┬ºpush(true);
  252.          }
  253.          else if(eval("\x01") == 931)
  254.          {
  255.             set("\x01",eval("\x01") - 390);
  256.             if(┬º┬ºpop())
  257.             {
  258.                set("\x01",eval("\x01") + 96);
  259.             }
  260.          }
  261.          else if(eval("\x01") == 453)
  262.          {
  263.             set("\x01",eval("\x01") - 203);
  264.             ┬º┬ºpush(true);
  265.          }
  266.          else if(eval("\x01") == 923)
  267.          {
  268.             set("\x01",eval("\x01") - 276);
  269.             if(┬º┬ºpop())
  270.             {
  271.                set("\x01",eval("\x01") - 319);
  272.             }
  273.          }
  274.          else
  275.          {
  276.             if(eval("\x01") == 637)
  277.             {
  278.                set("\x01",eval("\x01") + 182);
  279.                stop();
  280.                root = _parent._parent;
  281.                if(_parent._parent.level <= 5)
  282.                {
  283.                   i = 3;
  284.                }
  285.                else
  286.                {
  287.                   i = 2;
  288.                }
  289.                this._x = random(510) + 70;
  290.                this._y = 285;
  291.                viteza = 4;
  292.                onEnterFrame = function()
  293.                {
  294.                   if(cadou._y < -190)
  295.                   {
  296.                      viteza = 4;
  297.                   }
  298.                   else if(viteza < 6)
  299.                   {
  300.                      viteza += 0.25;
  301.                   }
  302.                   if(cadou.hitTest(root.container.mos.mos2.manaMos.hitter))
  303.                   {
  304.                      root.contor = root.contor + 1;
  305.                      root.cadouri = root.cadouri + 1;
  306.                      if(root.container.mos._xscale == -100)
  307.                      {
  308.                         root.container.attachMovie("bonus","bonusMC" + root.contor,root.contor);
  309.                         root.container["bonusMC" + root.contor]._y = cadou._y + 250;
  310.                         root.container["bonusMC" + root.contor]._x = this._x + 50;
  311.                      }
  312.                      else
  313.                      {
  314.                         root.container.attachMovie("bonus","bonusMC" + root.contor,root.contor);
  315.                         root.container["bonusMC" + root.contor]._y = cadou._y + 250;
  316.                         root.container["bonusMC" + root.contor]._x = this._x - 50;
  317.                      }
  318.                      root.container.mos.mos2.manaMos.cadou.cadou2.gotoAndStop(frame + 1);
  319.                      root.container.mos.mos2.frame = frame;
  320.                      root.container.mos.mos2.manaMos.gotoAndPlay(3);
  321.                      gotoAndStop("remove");
  322.                      delete onEnterFrame;
  323.                   }
  324.                   else if(cadou.hitTest(root.container.mos.mos2.capMos.hitter) && root.upgradeCaciula == false)
  325.                   {
  326.                      _parent._parent.mosStat = "mort";
  327.                      igrec = cadou._y;
  328.                      gotoAndStop("lovit");
  329.                      play();
  330.                      delete onEnterFrame;
  331.                   }
  332.                   else if(root.pauza == false && root.mosStat != "mort")
  333.                   {
  334.                      if(cadou._y < 0)
  335.                      {
  336.                         cadou._y += viteza;
  337.                         reflexie._y = (cadou._y - 47) * -1;
  338.                      }
  339.                      else
  340.                      {
  341.                         if(root.sunet)
  342.                         {
  343.                            root.cadouHit.start(0,1);
  344.                         }
  345.                         cadou._y = 0;
  346.                         reflexie._y = 47;
  347.                         gotoAndPlay(2);
  348.                         delete onEnterFrame;
  349.                      }
  350.                   }
  351.                };
  352.                break loop0;
  353.             }
  354.             if(eval("\x01") == 698)
  355.             {
  356.                set("\x01",eval("\x01") + 233);
  357.                ┬º┬ºpush(true);
  358.             }
  359.             else if(eval("\x01") == 240)
  360.             {
  361.                set("\x01",eval("\x01") + 329);
  362.                if(┬º┬ºpop())
  363.                {
  364.                   set("\x01",eval("\x01") - 116);
  365.                }
  366.             }
  367.             else
  368.             {
  369.                if(eval("\x01") == 541)
  370.                {
  371.                   set("\x01",eval("\x01") + 96);
  372.                   break loop0;
  373.                }
  374.                if(eval("\x01") == 824)
  375.                {
  376.                   set("\x01",eval("\x01") - 784);
  377.                   ┬º┬ºpush(true);
  378.                }
  379.                else
  380.                {
  381.                   if(eval("\x01") == 819)
  382.                   {
  383.                      set("\x01",eval("\x01") - 819);
  384.                      break loop0;
  385.                   }
  386.                   if(eval("\x01") != 328)
  387.                   {
  388.                      break;
  389.                   }
  390.                   set("\x01",eval("\x01") - 88);
  391.                   ┬º┬ºpush(true);
  392.                }
  393.             }
  394.          }
  395.       }
  396.    }
  397. }
  398.